<script language="javascript" src="/Public/static/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<div id="main-content">
    <div id="main" class="main">
		<div class="user-hd">
			<h2>订单管理>>{$page_title}</h2>
			<a class="kehu uploadify-button" style="position: absolute;  bottom: 8px; right: 25px;" href="{:U('Cinema/add')}">
			  新增
			</a>
		</div>	
		<div class="clearfix searchspin">
			<dl>
				<dt>筛选条件:</dt>
				<dd>		
				<form action="/Admin/Order/count" method="get">

				开通时间：<input type="text" name="create_time_start" id="create_time_start" value="{$_GET['create_time_start']}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({maxDate:'#F{$dp.$D(\'create_time_end\')||\'%y-%M-%d\'}'})"</literal> readonly="readonly" size="30" style="width: 90px;"/>
                        <input type="text" name="create_time_end" id="create_time_end" value="{$_GET['create_time_end']}" class="Wdate bg-input mr5" <literal>onfocus="WdatePicker({minDate:'#F{$dp.$D(\'create_time_start\')}',maxDate:'%y-%M-%d'})"</literal> readonly="readonly" size="30" style="width: 90px;" />
				<input type="text" maxlength="36" name="keywords" value="{$_REQUEST['keywords']}" placeholder="主机名称或影院名称..." class="bg-input">
				<a href="{:U('Admin/Order/count')}" class="sblue-btn" style="height:28px;width:68px;">清空 </a>
				<input type="submit" class="sblue-btn" value="检索">
				<div class="clear"></div>
				</form>
				</dd>
			</dl>

		</div>		
        <div class="spin-cont">
            <table>
                <tr>
                    <th class="spin-tit" style="width: 160px;">主机名</th>
                    <th style="width: 130px;">包片下单次数</th>
                </tr>
                <volist name="list" id="vo">
                <tr>
                    <td class="spin-tit">{$vo.host_name}</td>
                    <td class="spin-tit">{$vo.count}</td>
                </tr>
                </volist>
            </table>
            <div class="page txt-center">
                {$page}
            </div>
        </div>
    </div>
</div>
<script language="javascript">
    function initPassword(url, message)
    {
        swal({
            title: message,
            text: "",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#0C7AB9",
            cancelButtonText: "取消",
            confirmButtonText: "确定",
            closeOnConfirm: false
            },
            function(){
                $.ajax({
                    type:'post',
                    dataType:'json',
                    url: url,
                    success:function(data){
                        if (data.status==1) {
                            alertMessage(data.info, 1, 2);
                            if (data.url) {
                                delayGoToPage(data.url, 2000);
                            }
                        }else{
                            alertMessage(data.info, '', 2);
                        }
                    }
                });
            }
        );
    }
</script>